home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 418_02 / rasmol2 / command.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-02  |  1.1 KB  |  59 lines

  1. /* command.h
  2.  * RasMol2 Molecular Graphics
  3.  * Roger Sayle, February 1994
  4.  * Version 2.3
  5.  */
  6.  
  7. #define MAXBUFFLEN   256
  8. #define MAXLINELEN   256
  9.  
  10. #define FormatPDB        1
  11. #define FormatXYZ        2
  12. #define FormatAlchemy    3
  13. #define FormatSybyl      4
  14. #define FormatCIF        5
  15. #define FormatMDL        6
  16.  
  17.  
  18. #ifdef COMMAND
  19. char DataFileName[80];
  20. char CurLine[MAXBUFFLEN];
  21. int CurState,StateOption;
  22. int CommandActive;
  23. Long SelectCount;
  24. int Interactive;
  25.  
  26. #else
  27. extern char DataFileName[80];
  28. extern char CurLine[MAXBUFFLEN];
  29. extern int CurState,StateOption;
  30. extern int CommandActive;
  31. extern Long SelectCount;
  32. extern int Interactive;
  33.  
  34. #ifdef __STDC__
  35. int ProcessCharacter( char );
  36. int FetchFile( int, int, char* );
  37. void LoadScriptFile( FILE*, char* );
  38. void DisplaySelectCount();
  39. void ResetCommandLine( int );
  40. void InitialiseCommand();
  41. int ExecuteIPCCommand( char __huge* );
  42. int ExecuteCommand();
  43. void ZapDatabase();
  44.  
  45. #else /* non-ANSI C compiler */
  46. int ProcessCharacter();
  47. int FetchFile();
  48. void LoadScriptFile();
  49. void DisplaySelectCount();
  50. void ResetCommandLine();
  51. void InitialiseCommand();
  52. int ExecuteIPCCommand();
  53. int ExecuteCommand();
  54. void ZapDatabase();
  55.  
  56. #endif
  57. #endif
  58.  
  59.